package com.chyb.cloud.apis;

import com.chyb.cloud.exp.PayTwoFeignSentinelApiFallBack;
import com.chyb.cloud.resp.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * value：服务端的服务名
 * failback：指定服务降级后执行的类
 */
@FeignClient(value = "nacos-payment-provider", fallback = PayTwoFeignSentinelApiFallBack.class)
public interface PayFeignSentinelApiTwo {
//    对外暴漏的API接口
    @GetMapping("/pay/nacos/get/{orderNo}")
    ResultData getPayByOrderNo(@PathVariable("orderNo") String orderNo);
}
